package gps.monitor.gpsbootstrap.web;

/*import cn.cyq.anno.JMController;
import cn.cyq.anno.JMGet;
import cn.cyq.anno.JMRequestMapping;*/
import gps.monitor.gpsbootstrap.tool.AbstractApiOps;
import gps.monitor.gpsbootstrap.tool.ApiJsonResult;
import gps.monitor.gpsbootstrap.tool.LocalBeanTool;
import gps.monitor.jt809server.service.DownConnectService;

/**
 * @author cyq
 * @date 2021/11/6
 * @desc talk is cheep,show me the code
 */
/*@JMController
@JMRequestMapping("jt809/")*/
public class Jt809ServiceOps extends AbstractApiOps {

    private DownConnectService downConnectService = LocalBeanTool.getBean(DownConnectService.class);

   /* @JMGet("send")*/
    public ApiJsonResult<?> send(String data){
        downConnectService.sendMsg(data);
        return okMsg("ok");
    }
}
